package com.wwj.web.service.impl;

import com.wwj.web.mapper.ShiroRoleMapper;
import com.wwj.web.service.RolesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RolesServiceImpl implements RolesService {

    @Autowired
    ShiroRoleMapper roleMapper;

    @Override
    public  List<String> getRolesByUserId(Integer userId) {
        List<String> rolesByUserId = roleMapper.getRolesByUserId(userId);
        return rolesByUserId;
    }
}
